<?php
session_start();
$User_ID=$_SESSION['User_ID'];
?>
<?php

require_once("includes/database.php"); 



{	
$email = $_POST['email'];
$contact_number = $_POST['contact_number'];
$password = $_POST['password'];
$new_password = $_POST['new_password'];

date_default_timezone_set ("Asia/Hong_Kong");
$timezone= date_default_timezone_get();

$date =date("Y/m/d");

$tsql="UPDATE user_db SET Password='{$new_password}', Email_Address='{$email}', Contact_Number='{$contact_number}'
WHERE User_ID='{$User_ID}' and Password='{$password}'"; 



$data =  mysql_query($tsql,$con);

if( $data )
{
     /*echo "Connection established.\n";*/
	$message = "Updating Information...";
	 echo "<script type='text/javascript'>alert('$message');window.location = 'thesis_vet_page.php?page=1&pet_id=';</script>";
}
else
{
    //$message = "Updating Profile Failed!";
	//echo "<script type='text/javascript'>alert('$message');window.location = 'thesis_vet_page.php?page=1&pet_id=';</script>";
     die( print_r( mysql_error(), true));
}
}

?>